home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xmbase-grok-1.2 / grok.h < prev    next >
C/C++ Source or Header  |  1995-06-25  |  3KB  |  77 lines

  1. /*
  2.  * common definitions for grok. The actual data structures the database is
  3.  * stored in are in form.h, everything else is here.
  4.  */
  5.  
  6. #define FALSE    0
  7. #define TRUE    1
  8. #define BOOL    int
  9.  
  10.  
  11. /*
  12.  * global preferences
  13.  */
  14.  
  15. struct pref {
  16.     BOOL    ampm;        /* US time format if TRUE, sane if FALSE */
  17.     BOOL    mmddyy;        /* US date format if TRUE, European if FALSE */
  18.     BOOL    query2search;    /* copy query pulldn string to search string */
  19.     BOOL    letters;    /* show letter search row below summary */
  20.     BOOL    allwords;    /* letter search looks at all word beginnings*/
  21.     BOOL    incremental;    /* searches and queries are incremental */
  22.     BOOL    uniquedb;    /* only unique names in dbase pulldown */
  23.     char    pselect;    /* print: C=curr, S=search, A=all */
  24.     char    pformat;    /* print: S=summary, N=summary+note, C=cards */
  25.     char    pquality;    /* print: A=ascii, O=overstrike, P=PostScript*/
  26.     char    pdevice;    /* print: P=printer, F=file, W=window */
  27.     char    *pspooler_a;    /* print spool command, ascii */
  28.     char    *pspooler_p;    /* print spool command, PostScript */
  29.     char    *pfile;        /* print file (if pdevice==F) */
  30.     double    scale;        /* scale factor for cards */
  31.     int    sumlines;    /* number of summary lines */
  32. };
  33.  
  34.  
  35. /*
  36.  * X stuff
  37.  */
  38.                 /* fonts */
  39. #define FONT_STD    0        /* standard font: menus, text */
  40. #define FONT_HELP    1        /* pretty font for help popups */
  41. #define FONT_HELV    2        /* fonts available in forms */
  42. #define FONT_HELV_O    3
  43. #define FONT_HELV_S    4
  44. #define FONT_HELV_L    5
  45. #define FONT_COURIER    6
  46. #define FONT_LABEL    7        /* chart axis labels */
  47. #define NFONTS        8
  48.  
  49.                 /* colors */
  50. #define COL_BACK    0        /* standard background */
  51. #define COL_SHEET    1        /* paper-like text scroll areas */
  52. #define COL_STD        2        /* standard foreground */
  53. #define COL_TEXTBACK    3        /* standard bkground of text widgets */
  54. #define COL_TOGGLE    4        /* toggle button diamond color */
  55. #define COL_CANVBACK    5        /* canvas background */
  56. #define COL_CANVFRAME    6        /* canvas frame around boxes */
  57. #define COL_CANVBOX    7        /* canvas box representing item */
  58. #define COL_CANVSEL    8        /* canvas selected box */
  59. #define COL_CANVTEXT    9        /* canvas text inside box */
  60. #define COL_CHART_AXIS    10        /* chart axis color */
  61. #define COL_CHART_GRID    11        /* chart grid color */
  62. #define COL_CHART_BOX    12        /* border of each bar in the chart */
  63. #define COL_CHART_0    13        /* eight colors for bars in chart */
  64. #define COL_CHART_1    14
  65. #define COL_CHART_2    15
  66. #define COL_CHART_3    16
  67. #define COL_CHART_4    17
  68. #define COL_CHART_5    18
  69. #define COL_CHART_6    19
  70. #define COL_CHART_7    20
  71. #define NCOLS        21
  72.  
  73.                 /* pixmaps for labels and buttons */
  74. #define PIC_LEFT    0        /* previous card */
  75. #define PIC_RIGHT    1        /* next card */
  76. #define NPICS        2
  77.